﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <meta http-equiv="X-UA-Compatible" content="IE=8" />
    <title>在线聊天</title>
     <link href="<%=ResolveUrl("~/Content/Logoned.css") %>" rel="stylesheet" type="text/css" />
    <% Html.RenderPartial("HeaderUc"); %>
    <script type="text/javascript">
        $(function () {
          //  window.setInterval("reinitIframe()", 200);
            var iframe = document.getElementById("mainFrame");
            iframe.scrollTop = iframe.scrollHeight;
        });
       

        function reinitIframe() {
            var iframe = document.getElementById("mainFrame");
            try {
                var bHeight = iframe.contentWindow.document.body.scrollHeight;
                var dHeight = iframe.contentWindow.document.documentElement.scrollHeight;
                var height = Math.max(bHeight, dHeight);
                iframe.height = height;
            } catch (ex) { }
        }
    </script>
</head>
 <frameset rows="*,123" cols="*" framespacing="1" frameborder="yes" border="1" bordercolor="#000000" class="bgBody">
  <frameset rows="*" cols="*,213" framespacing="1" frameborder="yes" border="1">
    <frame src="<%=Url.Action("ChatMessage") %>" name="mainFrame" id="mainFrame" title="mainFrame" />
    <frame src="<%=Url.Action("ChatOnline") %>" name="rightFrame"  scrolling="Yes" noresize="noresize" id="rightFrame" title="rightFrame" />
  </frameset>
  <frame src="<%=Url.Action("ChatButtom") %>" name="bottomFrame" scrolling="Yes" noresize="noresize" id="bottomFrame" title="bottomFrame" />
</frameset>

</html>
